package cn.cfoodc.sharding.service;

import cn.cfoodc.sharding.controller.dto.OrderAndOrderItemDto;
import cn.cfoodc.sharding.controller.dto.OrderBingdingOrderItemDto;
import cn.cfoodc.sharding.domain.Order;
import cn.cfoodc.sharding.domain.TOrderItem;

import java.util.List;

public interface OrderService {
    int deleteByPrimaryKey(Long orderId);

    int insert(Order record);

    Order selectByPrimaryKey(Long orderId);

    int updateByPrimaryKey(Order record);

    OrderAndOrderItemDto selectOneByUseridAndOrderid(Long userId , Long orderId);

    List<OrderBingdingOrderItemDto> selectAllOrderBingdingOrderItem(Long userId , Long orderId);

    List<OrderBingdingOrderItemDto> selectAllOrderBingdingOrderItem2( Long userId , Long userId2);
}